package reflection.dproxy.simplelog;

import java.lang.reflect.Proxy;

public class Main {

    /**
     * @param args
     */
    public static void main(String[] args) {
        UserService userService = (UserService) Proxy.newProxyInstance(
                UserService.class.getClassLoader(),
                new Class[] { UserService.class },
                new UserServiceLogger());

        userService.del(2L);
    }
}
